package HeadFirst设计模式._1_策略模式._6_.Character;

import HeadFirst设计模式._1_策略模式._6_.Weapon.WeaponBehavior;

/**
 * 人物角色
 */
public abstract class Characters {

    WeaponBehavior weaponBehavior;

    public void setWeapon(WeaponBehavior weaponBehavior){
        this.weaponBehavior = weaponBehavior;
    }

    public void performUserWeapon(){
        weaponBehavior.useWeapon();
    }

    public abstract void fight();
}
